Repository navigation
Qualify qs.Commons palette references for Qt 6.12 - #1
Merged
Merged
Conversation
QtQuick 6.12 introduces a built-in Color type that shadows the unqualified Color singleton from qs.Commons. Unqualified references such as `Color.foreground` then resolve to the wrong type and read as undefined, so the widget renders without its theme palette. Import qs.Commons under the Commons alias and reference Commons.Color, keeping Style/Border/Util unqualified. This mirrors the upstream Omarchy fix (omacom/omarchy#14553, b83d3df0) and behaves identically on Qt 6.11. Provenance: authored by DeepSeek V4.1 Flash (pi herd worker).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
QtQuick 6.12 ships a built-in
Colortype that shadows the unqualifiedColorsingleton fromqs.Commons. UnqualifiedColor.<role>then resolves to the wrong type and reads asundefined, so the widget loses its theme palette.Import
qs.Commons as Commonsand referenceCommons.Color, keepingStyle/Border/Utilunqualified. Mirrors upstream Omarchy omacom/omarchy#14553 (b83d3df0); behaves identically on Qt 6.11.Verification (Qt 6.12.0, quickshell 0.3.2, offscreen)
Real
Panel.qmlhosted with the genuineqs.Commons/qs.Uiand aPluginBarApifacade:@SyncthingIcon.qml[100] TypeError: Cannot read property 'background' of undefined,@SyncthingIcon.qml[105] Unable to assign [undefined] to QColorforeground/urgentresolve to theme coloursProvenance
Authored by DeepSeek V4.1 Flash (pi herd worker); not independently reviewed here.
Independent review
GPT-6.1 Sol independently reviewed the exact committed diff: only explicit Commons.Color qualification and its required aliased import changed. Reversing those edits reproduces the original files byte-for-byte. Existing unqualified Style/Border/Util access and all layout, colors and operational logic are preserved. Test/runtime verification is the author’s, not claimed by this reviewer. No unresolved code concern from this review.